<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div id="app-2">
    <span :title="message" v-if="seen">
      鼠标悬停几秒钟查看此处动态绑定的提示信息！
    </span>

    <ol>
      <li v-for="a in todos">{{a.text}}</li>
    </ol>
  </div>
</body>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script>
  var app2 = new Vue({
    el: '#app-2',
    data: {
      seen: true,
      // message: '页面加载于 ' + new Date().toLocaleString()
      message: `页面加载于${new Date().toLocaleString()}`,
      todos: [
        { text: '学习 JavaScript' },
        { text: '学习 Vue' },
        { text: '整个牛项目' }
      ]
    },

  })
  var date = new Date().toLocaleString()
  console.log(date);
</script>

</html>